issue/892-添加infinicore.tensor函数; 移除from_numpy函数的dtype参数#894
Open
pengcheng888 wants to merge 1 commit intoInfiniTensor:mainfrom
Open
issue/892-添加infinicore.tensor函数; 移除from_numpy函数的dtype参数#894pengcheng888 wants to merge 1 commit intoInfiniTensor:mainfrom
pengcheng888 wants to merge 1 commit intoInfiniTensor:mainfrom
Conversation
pengcheng888
commented
Jan 8, 2026
| import torch | ||
|
|
||
| try: | ||
| import torch |
Collaborator
Author
There was a problem hiding this comment.
后续在无torch的环境中运行 InfiniLM,所以需要额外处理 import torch
61ca969 to
4265583
Compare
4265583 to
ef603eb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目标版本
main
功能描述
(1) 添加 infinicore.tensor函数,支持通过列表,numpy, 元组 ,scale 创建infinicore.Tensor
(2) 移除from_numpy函数的dtype参数
测试结果
测试新增的infinicore.tensor函数

测试修改的from_numpy函数

修改后,InfiniLM的llama.py和jiuge.py测试通过